package org.example.annotation;

import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

/**
 * @Description
 * @Author susu
 * @Date 2024/9/5
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface GlobalInteceptor {

    //校验登录
    boolean checkLogin() default true;

    //校验管理员
    boolean checkAdmin() default false;

}
